2 tier architecture and 3 tier architecture